#ifndef NOWPLAYLISTVIEW_H
#define NOWPLAYLISTVIEW_H

#include <QDialog>
#include <QTreeWidgetItem>

namespace Ui {
class NowPlayListView;
}

class NowPlayListView : public QDialog
{
    Q_OBJECT

public:
    explicit NowPlayListView(QWidget *parent = 0);
    ~NowPlayListView();

    void setFitPoint(const QPoint &point);
private:
    Ui::NowPlayListView *ui;

    int _oldIndex;
protected:
    virtual void focusInEvent(QFocusEvent * event);
//    void paintEvent(QPaintEvent *);
    virtual void mousePressEvent(QMouseEvent * event);

private slots:
    void onPlayListContentChange();
    void onPlayIndexChange(int);

    void itemDoubleClicked(QTreeWidgetItem * item, int column);
public slots:
    void reView();
    void slot_customContextMenuRequested(const QPoint & pos);
};

#endif // NOWPLAYLISTVIEW_H
